import java.io.File;

public class two {
    public static void dfs(String path) {
        File file = new File(path);
        if(!file.exists()) return;
        File[] filename = file.listFiles();
        if (filename.length == 0) return;
        for (File file_name_ : filename) {
            if (file_name_.isFile()) {
                if (file_name_.getAbsolutePath().endsWith(".java"))
                    System.out.println(file_name_.getName());
            }
            else {
                dfs(path + File.separator + file_name_.getName());
            }
        }
    }
    public static void main(String[] args) {
        String path = "E:";
        dfs(path);

    }
}
